package com.ruibang.glass.produce.entity;


import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.ruibang.glass.produce.domain.resp.UnitResp;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import java.io.Serializable;
import java.util.List;

@Data
@ApiModel
@TableName("g_produce_type_unit")
public class TypeUnit implements Serializable {

    @ApiModelProperty("主键id")
    @TableId(value = "id", type = IdType.ASSIGN_ID)
    private String id;

    @ApiModelProperty(value = "监测类型Id")
    private String typeId;

    @ApiModelProperty(value = "监测点类型名称")
    @TableField(exist = false)
    private String typeName;

    @ApiModelProperty(value = "单位值")
    private String unit;

    @ApiModelProperty(value = "单位名称")
    private String unitName;

    @ApiModelProperty(value = "单位类型列表")
    @TableField(exist = false)
    List<UnitResp> unitResp;
}
